package com.rocsea.robot.utils;
/**
 * @Author RocSea
 * @Date 2023/5/15
 */
public final class ExcelSemanticsUtils {
    private String text;
    private ExcelSemanticsUtils(String text) {
        this.text = text.trim();
    }

    public static ExcelSemanticsUtils of(String text) {
        return new ExcelSemanticsUtils(text);
    }

    public boolean hasPhysicalDelete() {
        if ("否".equals(text) || "没有".equals(text) || "无".equals(text)) {
            return Boolean.FALSE;
        }
        return Boolean.TRUE;
    }

    public boolean isReserve() {
        if ("否".equals(text.trim())) {
            return Boolean.FALSE;
        }
        return Boolean.TRUE;
    }

    public boolean notRequiredParse(){
        if("create_time".equals(text) || "update_time".equals(text)){
            return Boolean.TRUE;
        }
        return Boolean.FALSE;
    }

    public boolean hasLogicDelete(){
        if("deleted".equals(text)){
            return Boolean.TRUE;
        }
        return Boolean.FALSE;
    }

}

